/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Random;

/**
 * <p>Project: jse2303 - StringBuilderTest
 * <p>Powered by webrx On 2023-07-17 15:40:57
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class StringBuilderTest {
    public static void main(String[] args) {
        var su = new StringBuffer("1");
        String[] ops = {"", "+", "-"};
        Random rand = new Random();
        for (int a = 10; a > 0; a--) {
            for (int i = 2; i <= 9; i++) {
                su.append(String.format("%s%d", ops[rand.nextInt(ops.length)], i));
            }
            System.out.println(su);
            su.delete(1, su.length());
        }

    }
}
